package luceneqe.queryExpansion.matrix;

public class Candidato implements Comparable<Candidato>{

	private String word;
	private String wordComplete;
	private double weigth;
	private double value;
	
	public Candidato(String word, String wordComplete, double value)
	{
		this.word = word;
		this.value = value;
		this.wordComplete =wordComplete;
	}
	
	public Candidato(String word, double value)
	{
		this.word = word;
		this.value = value;
	}

	public void setRankingValue(double c)
	{
		this.value = c;
	}
	
	public void setWeightValue(double d)
	{
		this.weigth = d;
	}
	
	public double getWeightValue()
	{
		return this.weigth;
	}
	
	public Double getRankingValue() 
	{
		return new Double(this.value);
	}

	public double getValue() {
		return value;
	}

	public String getWord() {
		return word;
	}
	
	public String getWordComplete()
	{
		return this.wordComplete;
	}
	
	public int compareTo(Candidato c) {
		double c1 = this.value;
		double c2 = c.getValue();	   

		if (c1 > c2 )
			return -1;
		else if (c1==c2)
			return 0;
		else
			return +1;
	}

}
